package com.healthy.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.education.mapper.ActivitiesMapper;
import com.healthy.education.domain.Activities;
import com.healthy.education.service.IActivitiesService;

/**
 * 活动信息Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class ActivitiesServiceImpl implements IActivitiesService 
{
    @Autowired
    private ActivitiesMapper activitiesMapper;

    /**
     * 查询活动信息
     * 
     * @param activityId 活动信息主键
     * @return 活动信息
     */
    @Override
    public Activities selectActivitiesByActivityId(Long activityId)
    {
        return activitiesMapper.selectActivitiesByActivityId(activityId);
    }

    /**
     * 查询活动信息列表
     * 
     * @param activities 活动信息
     * @return 活动信息
     */
    @Override
    public List<Activities> selectActivitiesList(Activities activities)
    {
        return activitiesMapper.selectActivitiesList(activities);
    }

    /**
     * 新增活动信息
     * 
     * @param activities 活动信息
     * @return 结果
     */
    @Override
    public int insertActivities(Activities activities)
    {
        return activitiesMapper.insertActivities(activities);
    }

    /**
     * 修改活动信息
     * 
     * @param activities 活动信息
     * @return 结果
     */
    @Override
    public int updateActivities(Activities activities)
    {
        return activitiesMapper.updateActivities(activities);
    }

    /**
     * 批量删除活动信息
     * 
     * @param activityIds 需要删除的活动信息主键
     * @return 结果
     */
    @Override
    public int deleteActivitiesByActivityIds(Long[] activityIds)
    {
        return activitiesMapper.deleteActivitiesByActivityIds(activityIds);
    }

    /**
     * 删除活动信息信息
     * 
     * @param activityId 活动信息主键
     * @return 结果
     */
    @Override
    public int deleteActivitiesByActivityId(Long activityId)
    {
        return activitiesMapper.deleteActivitiesByActivityId(activityId);
    }
}
